package com.baor.controller;

import com.baor.domain.OrderVo;
import com.baor.service.CopyService;
import com.baor.utils.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/copy")
public class CopyController {

    @Autowired
    private CopyService service;

    @RequestMapping("/setFixed")
    public AjaxResult<?> setFixed(@RequestBody OrderVo vo){
        return service.insertOrder(vo);
    }

    @RequestMapping("/getFixed")
    public AjaxResult<?> getFixed(@RequestBody OrderVo vo){
        return service.payMoney(vo);
    }

}
